
/**
 * Write a description of class Ville here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Ville
{
    private int nbHabitants;
    private String nom;
    
    public int getNbHabitants(){
        return this.nbHabitants;
    }
    
    public void setNbHabitants(int nb){
        this.nbHabitants=nb;
    }
    
    public String getNom(){
        return this.nom;
    }
    
    public void setNom(String nom){
        this.nom=nom;
    }
    
    public void addHabitants(int nb){
        if (nb>0)
            this.nbHabitants=this.nbHabitants=nb;
    }
}
